<template>
	<view>
		<view class="head">
			<view class="head_left" @tap="back()">
				<image src="../../../static/wode/return.png" mode=""></image>
			</view>
			<view class="head_mid">
				入驻语言助学师
			</view>
			<view class="head_left">

			</view>
		</view>
		<!-- 跨境 -->
		<view class="" v-if="type=='跨境助学师'">
			<view class="body">
				<view class="body_top">
					<view class="body_top_item">
						<text>类别</text>
						<view class="body_item_right">
							<text>跨境助学师</text>
						</view>
					</view>
					<picker mode="selector" :range="shenfenArr" @change="changeShenfen">
						<view class="body_top_item">
							<text>身份</text>
							<view class="body_item_right">
								<text v-if="shenfen==''">请选择</text>
								<text v-else>{{shenfen}}</text>
								<image src="../../../static/right.png" mode=""></image>
							</view>
						</view>
					</picker>
					<view class="body_top_item" @tap="selectCountry">
						<text>国籍</text>
						<view class="body_item_right">
							<text class="" v-if="guoji!=''">{{guoji}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item" @tap="choiceSex">
						<text>性别</text>
						<view class="body_item_right">
							<text class="" v-if="sex!=''">{{sex}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>毕业学校</text>
						<view class="body_item_right">
							<input v-model="school_name" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>学历</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="Education" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>专业</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="specialty" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>手机</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="phone" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>邮箱</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="email" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>

					<view class="message_me">
						<text>自我介绍</text>
						<textarea v-model="textInput" maxlength="200" class="viewpoint" @input="descInput">
							</textarea>
						<view class="remnant" v-text="remnant">/200</view>
					</view>

				</view>
				<!-- <view class="body_mid"> -->
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('teach')">
						<text class="text1">教学语言</text>
						<view class="body_item_right">
							<text class="" v-if="teaching_language!=''">{{teachLanguage}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in teaching_language" :key="index">
						<image class="updetaImg" @tap="gettoken('teach',index)" v-if="teaching_video_befor[index]==undefined" src="../../../static/wode/upVideo.png"
						 mode="">
						</image>
						<video class="selected-img" @tap="gettoken('teach',index)" v-else :src="teaching_video_befor[index]"></video>
					</view>
				</view>
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('mother')">
						<text class="text1">母语</text>
						<view class="body_item_right">
							<text class="" v-if="mother_language!=''">{{motherLanguage}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<image class="updetaImg" @tap="gettoken('mother')" v-if="mother_video_befor==''" src="../../../static/wode/upVideo.png"
					 mode="">
					</image>
					<video class="selected-img" v-else :src="mother_video_befor"></video>
				</view>
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('more')">
						<text class="text1">掌握语言</text>
						<view class="body_item_right">
							<text class="" v-if="master_language!=''">{{masterLanguage}}</text>
							<text v-else>除母语或教学语言之外(可不填)</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in master_language" :key="index">
						<image class="updetaImg" @tap="gettoken('master',index)" v-if="master_video_befor[index]==undefined" src="../../../static/wode/upVideo.png"
						 mode="">
						</image>
						<video class="selected-img" @tap="gettoken('master',index)" v-else :src="master_video_befor[index]"></video>
					</view>
				</view>
				<view class="mid_item">
					<text class="text1">相关跨境证明材料</text>
					<view class="picBox" @tap="gettoken('proveImg')" v-for="(item,index) in proveImgList" :key="index">
						<image class="selected-img" :src="item"></image>
					</view>
					<view class="picBox" @tap="gettoken('proveImg')">
						<image class="addImg" src="../../../static/wode/add.png"></image>
					</view>
					<view class="tips">
						*<text>上传证件及本人必须清晰可见</text>
					</view>
				</view>
				<!-- </view> -->
			</view>
			<view class="btn btn2" v-if="status==1">
				提交审核
			</view>
			<view class="btn" @tap="toProve" v-else>
				提交审核
			</view>
		</view>
		<view class="" v-else-if="type=='母语助学师'">
			<view class="body">
				<view class="body_top">
					<view class="body_top_item">
						<text>类别</text>
						<view class="body_item_right">
							<text>母语助学师</text>
						</view>
					</view>
					<picker mode="selector" :range="shenfenArr" @change="changeShenfen">
						<view class="body_top_item">
							<text>身份</text>
							<view class="body_item_right">
								<text v-if="shenfen==''">请选择</text>
								<text v-else>{{shenfen}}</text>
								<image src="../../../static/right.png" mode=""></image>
							</view>
						</view>
					</picker>
					<view class="body_top_item" @tap="selectCountry">
						<text>国籍</text>
						<view class="body_item_right">
							<text class="" v-if="guoji!=''">{{guoji}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item" @tap="choiceSex">
						<text>性别</text>
						<view class="body_item_right">
							<text class="" v-if="sex!=''">{{sex}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>毕业学校</text>
						<view class="body_item_right">
							<input v-model="school_name" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>学历</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="Education" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>专业</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="specialty" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>手机</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="phone" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>邮箱</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="email" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="message_me">
						<text>自我介绍</text>
						<textarea v-model="textInput" maxlength="200" class="viewpoint" @input="descInput">
							</textarea>
						<view class="remnant" v-text="remnant">/200</view>
					</view>
				</view>
				<!-- <view class="body_mid"> -->
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('mother')">
						<text class="text1">教学语言</text>
						<view class="body_item_right">
							<text class="" v-if="mother_language!=''">{{motherLanguage}}</text>
							<text v-else>请选择(母语)</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in mother_language" :key="index">
						<image class="updetaImg" @tap="gettoken('mother',index)" v-if="mother_video_befor==''" src="../../../static/wode/upVideo.png"
						 mode="">
						</image>
						<video class="selected-img" @tap="gettoken('mother',index)" v-else :src="mother_video_befor"></video>
					</view>
				</view>
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('more')">
						<text class="text1">掌握语言</text>
						<view class="body_item_right">
							<text class="" v-if="master_language!=''">{{masterLanguage}}</text>
							<text v-else>除母语或教学语言之外(可不填)</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in master_language" :key="index">
						<image class="updetaImg" @tap="gettoken('master',index)" v-if="master_video_befor[index]==undefined" src="../../../static/wode/upVideo.png"
						 mode="">
						</image>
						<video class="selected-img" @tap="gettoken('master',index)" v-else :src="master_video_befor[index]"></video>
					</view>
				</view>
				<!-- </view> -->
			</view>
			<view class="btn btn2" v-if="status==1">
				提交审核
			</view>
			<view class="btn" @tap="toProve" v-else>
				提交审核
			</view>
		</view>
		<view class="" v-else-if="type=='专业助学师'&&level=='a'">
			<!-- 专业A -->
			<view class="body">
				<view class="body_top">
					<view class="body_top_item">
						<text>类别</text>
						<view class="body_item_right">
							<text>专业助学师</text>
						</view>
					</view>
					<picker mode="selector" :range="shenfenArr" @change="changeShenfen">
						<view class="body_top_item">
							<text>身份</text>
							<view class="body_item_right">
								<text v-if="shenfen==''">请选择</text>
								<text v-else>{{shenfen}}</text>
								<image src="../../../static/right.png" mode=""></image>
							</view>
						</view>
					</picker>
					<view class="body_top_item" @tap="selectCountry">
						<text>国籍</text>
						<view class="body_item_right">
							<text class="" v-if="guoji!=''">{{guoji}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item" @tap="choiceSex">
						<text>性别</text>
						<view class="body_item_right">
							<text class="" v-if="sex!=''">{{sex}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>毕业学校</text>
						<view class="body_item_right">
							<input v-model="school_name" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>学历</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="Education" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>专业</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="specialty" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>手机</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="phone" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>邮箱</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="email" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="message_me">
						<text>自我介绍</text>
						<textarea v-model="textInput" maxlength="200" class="viewpoint" @input="descInput">
							</textarea>
						<view class="remnant" v-text="remnant">/200</view>
					</view>
				</view>
				<!-- <view class="body_mid"> -->
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('teach')">
						<text class="text1">教学语言</text>
						<view class="body_item_right">
							<text class="" v-if="teaching_language!=''">{{teachLanguage}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in teaching_language" :key="index">
						<image class="updetaImg" @tap="gettoken('teach',index)" v-if="teaching_video_befor[index]==undefined" src="../../../static/wode/upVideo.png"
						 mode="">
						</image>
						<video class="selected-img" @tap="gettoken('teach',index)" v-else :src="teaching_video_befor[index]"></video>
					</view>
				</view>
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('mother')">
						<text class="text1">母语</text>
						<view class="body_item_right">
							<text class="" v-if="mother_language!=''">{{motherLanguage}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<image class="updetaImg" @tap="gettoken('mother')" v-if="mother_video_befor==''" src="../../../static/wode/upVideo.png"
					 mode="">
					</image>
					<video class="selected-img" v-else :src="mother_video_befor"></video>
				</view>
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('more')">
						<text class="text1">掌握语言</text>
						<view class="body_item_right">
							<text class="" v-if="master_language!=''">{{masterLanguage}}</text>
							<text v-else>除母语或教学语言之外(可不填)</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in master_language" :key="index">
						<image class="updetaImg" @tap="gettoken('master',index)" v-if="master_video_befor[index]==undefined" src="../../../static/wode/upVideo.png"
						 mode="">
						</image>
						<video class="selected-img" @tap="gettoken('master',index)" v-else :src="master_video_befor[index]"></video>
					</view>
				</view>
				<view class="mid_item">
					<text class="text1">相关工作证明材料</text>
					<view class="picBox" @tap="gettoken('proveImg')" v-for="(item,index) in proveImgList" :key="index">
						<image class="selected-img" :src="item"></image>
					</view>
					<view class="picBox" @tap="gettoken('proveImg')">
						<image class="addImg" src="../../../static/wode/add.png"></image>
					</view>
					<view class="tips">
						*<text>上传证件及本人必须清晰可见</text>
					</view>
				</view>
				<!-- </view> -->
			</view>
			<view class="btn btn2" v-if="status==1">
				提交审核
			</view>
			<view class="btn" @tap="toProve" v-else>
				提交审核
			</view>
		</view>
		<view class="" v-else-if="type=='专业助学师'&&level=='b'">
			<view class="body">
				<view class="body_top">
					<view class="body_top_item">
						<text>类别</text>
						<view class="body_item_right">
							<text>专业助学师</text>
						</view>
					</view>
					<picker mode="selector" :range="shenfenArr" @change="changeShenfen">
						<view class="body_top_item">
							<text>身份</text>
							<view class="body_item_right">
								<text v-if="shenfen==''">请选择</text>
								<text v-else>{{shenfen}}</text>
								<image src="../../../static/right.png" mode=""></image>
							</view>
						</view>
					</picker>
					<view class="body_top_item" @tap="selectCountry">
						<text>国籍</text>
						<view class="body_item_right">
							<text class="" v-if="guoji!=''">{{guoji}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item" @tap="choiceSex">
						<text>性别</text>
						<view class="body_item_right">
							<text class="" v-if="sex!=''">{{sex}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>毕业学校</text>
						<view class="body_item_right">
							<input v-model="school_name" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>学历</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="Education" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>专业</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="specialty" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>手机</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="phone" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>邮箱</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="email" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="message_me">
						<text>自我介绍</text>
						<textarea v-model="textInput" maxlength="200" class="viewpoint" @input="descInput">
							</textarea>
						<view class="remnant" v-text="remnant">/200</view>
					</view>
				</view>
				<!-- <view class="body_mid"> -->
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('teach')">
						<text class="text1">教学语言</text>
						<view class="body_item_right">
							<text class="" v-if="teaching_language!=''">{{teachLanguage}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in teaching_language" :key="index">
						<video class="updetaImg" @tap="gettoken('teach',index)" v-if="teaching_video_befor[index]!=undefined" :src="teaching_video_befor[index]"
						 mode="">
						</video>
						<image class="selected-img" @tap="gettoken('teach',index)" v-else src="../../../static/wode/upVideo.png"></image>
					</view>
				</view>
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('mother')">
						<text class="text1">母语</text>
						<view class="body_item_right">
							<text class="" v-if="mother_language!=''">{{motherLanguage}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<image class="updetaImg" @tap="gettoken('mother')" v-if="mother_video_befor==''" src="../../../static/wode/upVideo.png"
					 mode="">
					</image>
					<video class="selected-img" v-else :src="mother_video_befor"></video>
				</view>
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('more')">
						<text class="text1">掌握语言</text>
						<view class="body_item_right">
							<text class="" v-if="master_language!=''">{{masterLanguage}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in master_language" :key="index">
						<image class="updetaImg" @tap="gettoken('master',index)" v-if="master_video_befor[index]==undefined" src="../../../static/wode/upVideo.png"
						 mode="">
						</image>
						<video class="selected-img" @tap="gettoken('master',index)" v-else :src="master_video_befor[index]"></video>
					</view>
				</view>
				<view class="mid_item">
					<text class="text1">语言相关等级证书</text>
					<view class="picBox" @tap="gettoken('proveImg')" v-for="(item,index) in proveImgList" :key="index">
						<image class="selected-img" :src="item"></image>
					</view>
					<view class="picBox" @tap="gettoken('proveImg')">
						<image class="addImg" src="../../../static/wode/add.png"></image>
					</view>
					<view class="tips">
						*<text>上传证件及本人必须清晰可见</text>
					</view>
				</view>
				<!-- </view> -->
			</view>
			<view class="btn btn2" v-if="status==1">
				提交审核
			</view>
			<view class="btn" @tap="toProve" v-else>
				提交审核
			</view>
		</view>
		<view class="" v-else-if="type=='私教'">
			<!-- 私教A -->
			<view class="body">
				<view class="body_top">
					<view class="body_top_item">
						<text>类别</text>
						<view class="body_item_right">
							<text>私教</text>
						</view>
					</view>
					<picker mode="selector" :range="shenfenArr" @change="changeShenfen">
						<view class="body_top_item">
							<text>身份</text>
							<view class="body_item_right">
								<text v-if="shenfen==''">请选择</text>
								<text v-else>{{shenfen}}</text>
								<image src="../../../static/right.png" mode=""></image>
							</view>
						</view>
					</picker>
					<view class="body_top_item" @tap="selectCountry">
						<text>国籍</text>
						<view class="body_item_right">
							<text class="" v-if="guoji!=''">{{guoji}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item" @tap="choiceSex">
						<text>性别</text>
						<view class="body_item_right">
							<text class="" v-if="sex!=''">{{sex}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>毕业学校</text>
						<view class="body_item_right">
							<input v-model="school_name" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>学历</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="Education" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>专业</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="specialty" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>手机</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="phone" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="body_top_item">
						<text>邮箱</text>
						<view class="body_item_right">
							<input type="text" value="" v-model="email" placeholder="请输入" />
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="message_me">
						<text>自我介绍</text>
						<textarea v-model="textInput" maxlength="200" class="viewpoint" @input="descInput">
							</textarea>
						<view class="remnant" v-text="remnant">/200</view>
					</view>
				</view>
				<!-- <view class="body_mid"> -->
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('teach')">
						<text class="text1">教学语言</text>
						<view class="body_item_right">
							<text class="" v-if="teaching_language!=''">{{teachLanguage}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in teaching_language" :key="index">
						<image class="updetaImg" @tap="gettoken('teach',index)" v-if="teaching_video_befor[index]==undefined" src="../../../static/wode/upVideo.png"
						 mode="">
						</image>
						<video class="selected-img" @tap="gettoken('teach',index)" v-else :src="teaching_video_befor[index]"></video>
					</view>
				</view>
				<view class="mid_item">
					<view class="body_top_item noborder" @tap="selectLanguage('more')">
						<text class="text1">掌握语言</text>
						<view class="body_item_right">
							<text class="" v-if="master_language!=''">{{masterLanguage}}</text>
							<text v-else>请选择</text>
							<image src="../../../static/right.png" mode=""></image>
						</view>
					</view>
					<view class="" v-for="(item,index) in master_language" :key="index">
						<image class="updetaImg" @tap="gettoken('master',index)" v-if="master_video_befor[index]==undefined" src="../../../static/wode/upVideo.png"
						 mode="">
						</image>
						<video class="selected-img" @tap="gettoken('master',index)" v-else :src="master_video_befor[index]"></video>
					</view>

				</view>
				<view class="mid_item">
					<text class="text1">相关工作证明材料</text>
					<view class="picBox" @tap="gettoken('proveImg')" v-for="(item,index) in proveImgList" :key="index">
						<image class="selected-img" :src="item"></image>
					</view>
					<view class="picBox" @tap="gettoken('proveImg')">
						<image class="addImg" src="../../../static/wode/add.png"></image>
					</view>
					<view class="tips">
						*<text>上传证件及本人必须清晰可见</text>
					</view>
				</view>
				<!-- </view> -->
			</view>
			<view class="btn btn2" v-if="status==1">
				提交审核
			</view>
			<view class="btn" @tap="toProve" v-else>
				提交审核
			</view>
		</view>
	</view>
</template>

<script>
	import qiniu from "../../../common/qiniuUploader.js"

	export default {
		data() {
			return {
				type: '', //助学师类别
				level: '', //助学师要求
				shenfenArr: ['学生', '留学生', '华侨', '华裔', '境外工作', '境外商人', '国籍'],
				teaching_video: [],
				mother_video: '',
				master_video: [],
				mother_video_befor:'',//母语视频上传前临时路径
				teaching_video_befor: [],//教学视频上传前临时路径
				master_video_befor: [],//掌握视频上传前临时路径
				teaching_language: [], //教学语言
				mother_language: [], //母语
				master_language: [], //掌握语言
				teachLanguage: '',
				masterLanguage: '',
				motherLanguage: '',
				shenfen: '',
				guoji: '',
				sex: '',
				school_name: '',
				specialty: '', //专业
				phone: '',
				email: '', //邮箱
				Education: '', //学历
				proveImgList: [], //证明材料
				status: '',
				masterData: '', //助学师资料
				remnant: 0, //字数
				textInput: '', //自我介绍
			}
		},
		onLoad(option) {
			this.type = option.type
			if (option.level != undefined) {
				this.level = option.level
			}
			console.log(this.type, this.level, '助学师类型')
		},
		onShow() {
			this.guoji = uni.getStorageSync('countryName')
			this.teaching_language = uni.getStorageSync('teachLanguage')
			// console.log(this.teaching_language,'教学语言')
			if (this.teaching_language != "" && this.teaching_language != undefined) {
				this.teachLanguage = this.teaching_language.join('/')
			} else {
				this.teachLanguage = []
			}

			this.master_language = uni.getStorageSync('moreLanguage')
			if (this.master_language != "" && this.master_language != undefined) {
				this.masterLanguage = this.master_language.join('/')
			} else {
				this.masterLanguage = []
			}
			this.mother_language = uni.getStorageSync('motherLanguage')
			if (this.mother_language != "" && this.mother_language != undefined) {
				this.motherLanguage = this.mother_language.join('/')
			} else {
				this.motherLanguage = []
			}

			this.teaching_video.length = this.teaching_language.length
			this.master_video.length = this.master_language.length

			console.log(this.master_video, this.teaching_video)
			this.getState()
		},
		methods: {
			back() { //返回
				uni.navigateBack({
					delta: 1
				})
			},
			descInput() { //控制输入框输入字数
				// var txtVal = this.textInput.length;
				this.remnant = this.textInput.length
				// this.remnant = 200 - txtVal;
			},
			getState() {
				var me = this
				if (this.type == '专业助学师') {
					var types = 'major'
				} else if (this.type == '跨境助学师') {
					var types = 'cross_border'
				} else if (this.type == '母语助学师') {
					var types = 'mother_tongue'
				} else if (this.type == '私教') {
					var types = 'private_education'
				}
				var data = {
					user_id: uni.getStorageSync('user_id'),
					type: types
				}
				this.myAjaxNew({
					model: 'user',
					controllerName: 'masterInfo',
					actionName: 'queryListPage',
					data: data,
					successBack: function(res) {
						console.log(res, '助学师状态')
						if (res.data.data.length != 0) {
							if (res.data.data[0].status == 1) {
								uni.showToast({
									title: '审核中，请耐心等待',
									icon: 'none'
								})
							} else if (res.data.data[0].status == 3) {
								uni.showToast({
									title: '审核被拒，请重新修改提交',
									icon: 'none'
								})
							} else {

							}
							me.masterData = res.data.data[0]
							me.shenfen = me.masterData.identity;
							if (me.masterData.sex == 1) {
								me.sex = '男'
							} else {
								me.sex = '女'
							}
							me.guoji = me.masterData.nationality
							me.school_name = me.masterData.graduation_school
							me.Education = me.masterData.education
							me.specialty = me.masterData.specialty
							me.phone = me.masterData.mobile
							me.email = me.masterData.mail
							me.teaching_language = me.masterData.teach_language.split(',')
							me.teachLanguage = me.teaching_language.join('/')
							me.teaching_video = me.masterData.teach_language_url.split(',')
							if (me.type == '母语助学师') {
								me.motherLanguage = me.teachLanguage
								me.mother_language = me.teaching_language
								me.mother_video = me.masterData.teach_language_url.split(',')
							} else {
								me.motherLanguage = me.masterData.mother_tongue
								me.mother_video = me.masterData.mother_tongue_url
							}
							me.master_language = me.masterData.language.split(',')
							me.masterLanguage = me.master_language.join('/')
							me.master_video = me.masterData.language_url.split(',')
							me.status = res.data.data[0].status
							console.log(me.teaching_language, me.teachLanguage, '语言')
						}

					},
				})
			},
			changeShenfen(e) {
				console.log('picker发送选择改变，携带值为', e.target.value)
				this.shenfen = this.shenfenArr[e.target.value]
			},
			choiceSex() {
				var me = this;
				uni.showActionSheet({
					itemList: ['男', '女'],
					itemColor: '#008AFF',
					success: function(res) {
						var index = res.tapIndex;
						console.log(index);
						var itemList = ['男', '女'];
						if (index == 0) {
							me.sex = '男';
						} else {
							me.sex = '女';
						}
					}
				})
			},
			selectCountry() {
				uni.navigateTo({
					url: '../countryLists/countryLists?justCountry=true'
				})
			},
			selectLanguage(kind) {
				uni.navigateTo({
					url: '/pages/Other/countrySelect/countrySelect?type=语言学习&kind=' + kind
				})
			},
			// #ifdef APP-PLUS
			gettoken(type, index) {
				if (type == 'proveImg') {
					this.appselectImg(type, index)
				} else {
					var me = this;
					var data = {
						key: null,
					}
					this.myAjaxNewPost({
						model: 'push',
						controllerName: 'upload',
						actionName: 'getToken',
						data: data,
						successBack: function(res) {

							me.token = res.data.data
							console.log(me.token)
							if (me.token != '') {
								me.chooseVideo1(type, index)
							}

						}
					})
				}
			},
			// #endif
			appselectImg(type, index) {
				// this.initQiniu();
				var me = this;
				uni.chooseImage({
					count: 1,
					sizeType: ['compressed'],
					sourceType: ['album'],
					success: function(res) {
						// me.card_front = res.tempFilePaths[0];
						var filePath = res.tempFilePaths[0];
						uni.uploadFile({
							url: 'http://www.curiousmore.com:8768/eg-api/push/upload/uploadPicture',
							// url: 'http://192.168.101.14:8768/eg-api/push/upload/uploadPicture',
							filePath: filePath,
							name: 'file',
							formData: {
								'user_id': uni.getStorageSync('user_id'),
								'type': 'pic'
							},
							success: function(uploadFileRes) {
								// me.backImgArr.push(JSON.parse(uploadFileRes.data)[0]);
								console.log(JSON.parse(uploadFileRes.data)[0]);
								var imageURL = JSON.parse(uploadFileRes.data)[0];
								if (type == 'proveImg') {
									me.proveImgList.push(imageURL)
								}
							},
							fail: function(e) {
								uni.showToast({
									title: '图片上传失败，请重试',
									icon: 'none'
								})
								return;
							}
						});
					}
				});
			},
			appchooseVideo(type, index) {
				// this.initQiniu();
				// var me = this;
				uni.showActionSheet({
					itemList: ['相册', '拍摄'],
					success: (e) => {
						if (e.tapIndex == 0) { //从相册选择
							var me = this;
							uni.chooseVideo({
								count: 1,
								sourceType: ['album'],
								compressed: true, //是否压缩视频资源
								success: function(res) {
									console.log(res, '视频详情')
									me.video_height = res.height;
									me.video_width = res.width;
									me.video_duration = res.duration; //视频时间长度
									var filePath = res.tempFilePath; //获取到选择本地图片的临时路径
									console.log(filePath);

									// me.card_front = res.tempFilePaths[0];
									uni.uploadFile({
										url: 'http://www.curiousmore.com:8768/eg-api/push/upload/uploadPicture',
										// url: 'http://192.168.101.14:8768/eg-api/push/upload/uploadPicture',
										filePath: filePath,
										name: 'file',
										formData: {
											'user_id': uni.getStorageSync('user_id'),
											'type': 'video'
										},
										success: function(uploadFileRes) {
											// me.backImgArr.push(JSON.parse(uploadFileRes.data)[0]);
											console.log(JSON.stringify(uploadFileRes))
											// var imageURL = JSON.parse(uploadFileRes.data)[0]
											// if (type == 'mother') {
											// 	me.mother_video = imageURL
											// } else if (type == 'master') {
											// 	me.master_video.splice(index, 1, imageURL)
											// } else if (type == 'teach') {
											// 	me.teaching_video.splice(index, 1, imageURL)
											// }
										},
										fail: function(e) {
											console.log(JSON.stringify(e))
											uni.showToast({
												title: '视频上传失败，请重试',
												icon: 'none'
											})
											return;
										}
									});
								}
							});
						} else {
							var me = this;
							uni.chooseVideo({ //拍摄
								count: 1,
								maxDuration: 60, //拍摄时长限制
								sourceType: ['camera'],
								compressed: true, //是否压缩视频资源
								success: function(res) {
									console.log(res)
									// return
									me.video_height = res.height;
									me.video_width = res.width;
									me.video_duration = res.duration; //视频时间长度
									var filePath = res.tempFilePath;
									console.log(filePath);

									uni.uploadFile({
										url: 'http://www.curiousmore.com:8768/eg-api/push/upload/uploadPicture',
										// url: 'http://192.168.101.14:8768/eg-api/push/upload/uploadPicture',
										filePath: filePath,
										name: 'file',
										formData: {
											'user_id': uni.getStorageSync('user_id'),
											'type': 'video'
										},
										success: function(uploadFileRes) {
											// me.backImgArr.push(JSON.parse(uploadFileRes.data)[0]);
											// var imageURL = JSON.parse(uploadFileRes.data)[0]
											console.log(JSON.parse(uploadFileRes.data))
											// if (type == 'mother') {
											// 	me.mother_video = imageURL
											// } else if (type == 'master') {
											// 	me.master_video.splice(index, 1, imageURL)
											// } else if (type == 'teach') {
											// 	me.teaching_video.splice(index, 1, imageURL)
											// }
										},
										fail: function(e) {
											console.log(e)
											uni.showToast({
												title: '视频上传失败，请重试',
												icon: 'none'
											})
											return;
										}
									});
								}
							});
						}
					}
				})
			},

			//#ifdef MP-WEIXIN
			gettoken(type, index) {
				var me = this;
				var data = {
					key: null,
				}
				this.myAjaxNewPost({
					model: 'push',
					controllerName: 'upload',
					actionName: 'getToken',
					data: data,
					successBack: function(res) {

						me.token = res.data.data
						console.log(me.token)
						if (me.token != '') {
							if (type == 'proveImg') {
								me.selectImg(type, index)
							} else {
								me.chooseVideo1(type, index)
							}

						}

					}
				})
			},
			//#endif
			chooseVideo1(type, index) { //选择视频或拍摄

				uni.showActionSheet({
					itemList: ['相册', '拍摄'],
					success: (e) => {
						console.log(e)
						if (e.tapIndex == 0) { //从相册选择
							var me = this;
							uni.chooseVideo({
								count: 1,
								sourceType: ['album'],
								compressed: true, //是否压缩视频资源
								success: function(res) {
									console.log(res)
									// return
									me.video_height = res.height;
									me.video_width = res.width;
									me.video_duration = res.duration; //视频时间长度
									// 									if (res.size > 52428800) { //控制上传视频大小
									// 										uni.showToast({
									// 											title:"请选择小于50M的视频!",
									// 											icon:'none'
									// 										})
									// 										return
									// 									} else {
									var filePath = res.tempFilePath;
									if (type == 'mother') {
										me.mother_video_befor = filePath
									} else if (type == 'master') {
										me.master_video_befor.splice(index, 1, filePath)
									} else if (type == 'teach') {
										me.teaching_video_befor.splice(index, 1, filePath)
									}
									
									console.log(filePath);
									// 交给七牛上传
									if (me.token != '') {
										qiniu.upload(filePath, (res) => {
											console.log(res.imageURL)
											if (type == 'mother') {
												me.mother_video = res.imageURL
											} else if (type == 'master') {
												me.master_video.splice(index, 1, res.imageURL)
											} else if (type == 'teach') {
												me.teaching_video.splice(index, 1, res.imageURL)
											}
											console.log('file url is: ' + res.fileUrl);
										}, (error) => {
											if (type == 'mother') {
												uni.showToast({
													title:'母语视频上传失败'
												})
											} else if (type == 'master') {
												uni.showToast({
													title:'掌握语言第'+(index+1)+'个视频上传失败'
												})
											} else if (type == 'teach') {
												uni.showToast({
													title:'教学语言第'+(index+1)+'个视频上传失败'
												})
											}
											console.log('error: ' + error);
										}, {
											region: 'ECN',
											domain: 'http://img.curiousmore.com', // // bucket 域名，下载资源时用到。如果设置，会在 success callback 的 res 参数加上可以直接使用的 ImageURL 字段。否则需要自己拼接
											key: null, // [非必须]自定义文件 key。如果不设置，默认为使用微信小程序 API 的临时文件名
											// 以下方法三选一即可，优先级为：uptoken > uptokenURL > uptokenFunc
											uptoken: me.token, // 由其他程序生成七牛 uptoken
											// uptokenURL: 'http://192.168.6.6:8768/eg-api/push/upload/getToken', // 从指定 url 通过 HTTP GET 获取 uptoken，返回的格式必须是 json 且包含 uptoken 字段，例如： {"uptoken": "[yourTokenString]"}
											uptokenFunc: function() {
												return me.token;
											}
										}, (res) => {
											// console.log('上传进度', res.progress)
											// console.log('已经上传的数据长度', res.totalBytesSent)
											// console.log('预期需要上传的数据总长度', res.totalBytesExpectedToSend)
											
										}, () => {
											// `before` 上传前执行的操作
										}, (err) => {
											// `complete` 上传接受后执行的操作(无论成功还是失败都执行)
										});
									}
									// }
								}
							});
						} else {
							var me = this;
							uni.chooseVideo({ //拍摄
								count: 1,
								maxDuration: 60, //拍摄时长限制
								sourceType: ['camera'],
								compressed: true, //是否压缩视频资源
								success: function(res) {
									console.log(res)
									// return
									me.video_height = res.height;
									me.video_width = res.width;
									me.video_duration = res.duration; //视频时间长度
									var filePath = res.tempFilePath;
									console.log(filePath);
									// 交给七牛上传
									uni.showLoading({
										title:'上传中'
									})
									if (me.token != '') {
										qiniu.upload(filePath, (res) => {
											console.log(res.imageURL)

											if (type == 'mother') {
												me.mother_video = res.imageURL
											} else if (type == 'master') {
												me.master_video.splice(index, 1, res.imageURL)
											} else if (type == 'teach') {
												me.teaching_video.splice(index, 1, res.imageURL)
											}
											uni.hideLoading()
											console.log('file url is: ' + res.fileUrl);
										}, (error) => {
											console.log('error: ' + error);
										}, {
											region: 'ECN',
											domain: 'http://img.curiousmore.com', // // bucket 域名，下载资源时用到。如果设置，会在 success callback 的 res 参数加上可以直接使用的 ImageURL 字段。否则需要自己拼接
											key: null, // [非必须]自定义文件 key。如果不设置，默认为使用微信小程序 API 的临时文件名
											// 以下方法三选一即可，优先级为：uptoken > uptokenURL > uptokenFunc
											uptoken: me.token, // 由其他程序生成七牛 uptoken
											// uptokenURL: 'http://192.168.6.6:8768/eg-api/push/upload/getToken', // 从指定 url 通过 HTTP GET 获取 uptoken，返回的格式必须是 json 且包含 uptoken 字段，例如： {"uptoken": "[yourTokenString]"}
											uptokenFunc: function() {
												return "[" + me.token + "]";
											}
										}, (res) => {
											// console.log('上传进度', res.progress)
											// console.log('已经上传的数据长度', res.totalBytesSent)
											// console.log('预期需要上传的数据总长度', res.totalBytesExpectedToSend)
											
										}, () => {
											
											// `before` 上传前执行的操作
										}, (err) => {
											// `complete` 上传接受后执行的操作(无论成功还是失败都执行)
										});
									}
								}
							});
						}
					}
				})
			},
			selectImg(type, index) {
				// this.initQiniu();
				var me = this;
				uni.chooseImage({
					count: 1,
					sizeType: ['compressed'],
					sourceType: ['album'],
					success: function(res) {
						// me.card_front = res.tempFilePaths[0];
						var filePath = res.tempFilePaths[0];
						// 交给七牛上传
						uni.showLoading({
							title:'上传中'
						})
						if (me.token != '') {
							qiniu.upload(filePath, (res) => {
								console.log(res.imageURL)
								var imageURL = res.imageURL
								if (type == 'proveImg') {
									me.proveImgList.push(imageURL)
								}
								uni.hideLoading()
								console.log('file url is: ' + res.fileUrl);
							}, (error) => {
								console.log('error: ' + error);
							}, {
								region: 'ECN',
								domain: 'http://img.curiousmore.com', // // bucket 域名，下载资源时用到。如果设置，会在 success callback 的 res 参数加上可以直接使用的 ImageURL 字段。否则需要自己拼接
								key: null, // [非必须]自定义文件 key。如果不设置，默认为使用微信小程序 API 的临时文件名
								// 以下方法三选一即可，优先级为：uptoken > uptokenURL > uptokenFunc
								uptoken: me.token, // 由其他程序生成七牛 uptoken
								// uptokenURL: 'http://192.168.6.6:8768/eg-api/push/upload/getToken', // 从指定 url 通过 HTTP GET 获取 uptoken，返回的格式必须是 json 且包含 uptoken 字段，例如： {"uptoken": "[yourTokenString]"}
								uptokenFunc: function() {
									return "[" + me.token + "]";
								}
							}, (res) => {
								uni.showLoading()
								console.log('上传进度', res.progress)
								console.log('已经上传的数据长度', res.totalBytesSent)
								console.log('预期需要上传的数据总长度', res.totalBytesExpectedToSend)

							}, () => {
								// 取消上传
							}, () => {
								// `before` 上传前执行的操作
							}, (err) => {
								// `complete` 上传接受后执行的操作(无论成功还是失败都执行)
							});
						}
					}
				});
			},
			toProve() {
				var me = this;
				if (this.guoji == '') {
					uni.showToast({
						title: '请选择国籍',
						icon: 'none'
					})
					return
				} else if (this.shenfen == '') {
					uni.showToast({
						title: '请选择身份',
						icon: 'none'
					})
					return
				} else if (this.sex == '') {
					uni.showToast({
						title: '请选择性别',
						icon: 'none'
					})
					return
				} else if (this.school_name == '') {
					uni.showToast({
						title: '请输入学校',
						icon: 'none'
					})
					return
				} else if (this.specialty == '') {
					uni.showToast({
						title: '请输入专业',
						icon: 'none'
					})
					return
				} else if (this.phone == '') {
					uni.showToast({
						title: '请输入手机',
						icon: 'none'
					})
					return
				} else if (this.email == '') {
					uni.showToast({
						title: '请输入邮箱',
						icon: 'none'
					})
					return
				} else if (this.motherLanguage == '') {
					uni.showToast({
						title: '请选择母语',
						icon: 'none'
					})
					return
				} else if (this.Education == '') {
					uni.showToast({
						title: '请输入学历',
						icon: 'none'
					})
					return
				} else if (this.mother_video == '') {
					uni.showToast({
						title: '请上传母语介绍视频',
						icon: 'none'
					})
					return
				}
				if (this.type != '母语助学师') {
					if (this.teachLanguage == '') {
						uni.showToast({
							title: '请选择教学语言',
							icon: 'none'
						})
						return
					} else if (this.proveImgList == '') {
						uni.showToast({
							title: '请上传相关资料',
							icon: 'none'
						})
						return
					}
					for (var i = 0; i < this.teaching_language.length; i++) {
						if (this.teaching_video[i] == undefined) {
							uni.showToast({
								title: '请上传相关自我介绍视频',
								icon: 'none'
							})
							return
						}
					}
				}

				if (this.level == 'a') {
					var grade = 1
				} else if (this.level == 'b') {
					var grade = 2
				}

				if (this.masterLanguage != '') {
					for (var j = 0; j < this.master_language.length; j++) {
						if (this.master_video[j] == undefined) {
							uni.showToast({
								title: '请上传相关自我介绍视频',
								icon: 'none'
							})
							return
						}
					}
				}
				if (this.sex == '男') {
					var sexs = 1
				} else {
					var sexs = 2
				}
				if (this.type == '专业助学师') {
					var types = 'major'
				} else if (this.type == '跨境助学师') {
					var types = 'cross_border'
				} else if (this.type == '母语助学师') {
					if (this.masterLanguage == '') {
						uni.showToast({
							title: '母语助学师至少要选择一项除母语外掌握语言',
							icon: 'none'
						})
						return
					}
					var types = 'mother_tongue'
				} else if (this.type = '私教') {
					var types = 'private_education'
				}

				this.teachLanguage = this.teaching_language.join(',')
				console.log(this.master_language)
				if(this.master_language!=''){
					this.masterLanguage = this.master_language.join(',')
				}else{
					this.masterLanguage=""
				}
				
				this.teaching_video = this.teaching_video.join(',')
				this.master_video = this.master_video.join(',')
				var proveImgLists = this.proveImgList.join(',')

				if (this.type == '专业助学师') {

					var data = {
						nationality: this.guoji,
						education: this.Education,
						graduation_school: this.school_name,
						identity: this.shenfen,
						sex: sexs,
						specialty: this.specialty,
						mail: this.email,
						mobile: this.phone,
						teach_language: this.teachLanguage,
						teach_language_url: this.teaching_video,
						type: types,
						mother_tongue: this.motherLanguage,
						mother_language_url: this.mother_video,
						language: this.masterLanguage,
						language_url: this.master_video,
						relevant_information: proveImgLists,
						grade: grade,
						introduction: this.textInput,
						user_id: uni.getStorageSync('user_id')
					}

				} else if (this.type == '跨境助学师') {
					var data = {
						nationality: this.guoji,
						graduation_school: this.school_name,
						education: this.Education,
						identity: this.shenfen,
						sex: sexs,
						specialty: this.specialty,
						mail: this.email,
						mobile: this.phone,
						teach_language: this.teachLanguage,
						teach_language_url: this.teaching_video,
						type: types,
						mother_tongue: this.motherLanguage,
						mother_language_url: this.mother_video,
						language: this.masterLanguage,
						language_url: this.master_video,
						relevant_information: proveImgLists,
						introduction: this.textInput,
						user_id: uni.getStorageSync('user_id')
					}
				} else if (this.type == '母语助学师') {
					var data = {
						nationality: this.guoji,
						graduation_school: this.school_name,
						identity: this.shenfen,
						education: this.Education,
						sex: sexs,
						specialty: this.specialty,
						mail: this.email,
						mobile: this.phone,
						teach_language: this.motherLanguage,
						teach_language_url: this.teaching_video,
						type: types,
						language: this.masterLanguage,
						language_url: this.master_video,
						relevant_information: proveImgLists,
						introduction: this.textInput,
						user_id: uni.getStorageSync('user_id')
					}
				} else if (this.type == '私教') {
					if (this.level == 'a') {
						var data = {
							nationality: this.guoji,
							graduation_school: this.school_name,
							education: this.Education,
							identity: this.shenfen,
							sex: sexs,
							specialty: this.specialty,
							mail: this.email,
							mobile: this.phone,
							teach_language: this.motherLanguage,
							teach_language_url: this.mother_video,
							type: types,
							language: this.masterLanguage,
							language_url: this.master_video,
							relevant_information: proveImgLists,
							introduction: this.textInput,
							user_id: uni.getStorageSync('user_id')
						}
					}
				}
				this.myAjaxNewPost({
					model: 'user',
					controllerName: 'masterInfo',
					actionName: 'insert',
					data: data,
					successBack: function(res) {
						console.log(res)
						if (res.data.message == '成功') {
							uni.navigateBack({
								delta: 2
							})
							uni.showToast({
								title: '提交成功,请等待审核',
								icon:'none'
							})
							uni.removeStorageSync('countryName')
							uni.removeStorageSync('teachLanguage')
							uni.removeStorageSync('moreLanguage')
							uni.removeStorageSync('motherLanguage')
						}else{
							uni.showToast({
								title: res.data.message,
								icon:'none'
							})
						}
					},
				})
			}
		}
	}
</script>

<style scoped>
	.head {
		width: 100%;
		display: flex;
		justify-content: space-between;
		height: 162upx;
		background: #ffffff;
		padding: 0 24upx;
		z-index: 200;
		position: fixed;
		top: 0;
		box-sizing: border-box;
	}

	.head image {
		width: 20upx;
		height: 36upx;
		margin-right: 9upx;
	}

	.head_left {
		height: 82upx;
		width: 106upx;
		display: flex;
		align-items: center;
		line-height: 82upx;
		color: #666666;
		font-size: 32upx;
		padding-top: 70upx;
	}
	.head_mid{
		padding-top: 90upx;
	}

	.head_right {
		width: 120upx;
	}

	.body {
		padding-top: 182upx;
	}

	.body_top {
		background: #FFFFFF;
		color: #333333;
		font-size: 32upx;
	}



	.body_top_item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 88upx;
		line-height: 88upx;
		padding: 0 24upx;
		border-bottom: 1upx solid #E6E6E6;
	}

	.noborder {
		border: none;
	}

	.body_item_right {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 500upx;
	}

	.body_item_right image {
		width: 16upx;
		height: 28upx;
	}

	.body_item_right text {
		color: #333333;
		font-size: 32upx;
	}

	.mid_item {
		margin-top: 20upx;
		background: #FFFFFF;
		width: 100%;
		padding: 0 24upx;
		box-sizing: border-box;
		padding-bottom: 20upx;
	}

	.mid_item .body_top_item {
		padding: 0;
	}

	.updetaImg {
		width: 702upx;
		height: 356upx;
	}

	.title {
		color: #333333;
		font-size: 32upx;
		font-weight: bold;
	}

	.picBox {
		width: 702upx;
		height: 356upx;
		background: #F5F5F5;
		text-align: center;
		line-height: 350upx;
		margin: 10upx 0;
		border-radius: 20upx;
	}

	.addImg {
		width: 69upx;
		height: 69upx;
	}

	.mid_item .selected-img {
		width: 702upx;
		height: 356upx;
	}

	.text1 {
		color: #333333;
		font-size: 32upx;
	}

	.tips {
		color: #FF3636;
		font-size: 24upx;
	}

	.tips text {
		color: #999999;
	}

	.btn {
		margin: 60upx 24upx;
	}

	.btn2 {
		opacity: 0.5;
		margin: 60upx 24upx;
	}

	.remnant {
		font-size: 26upx;
		color: rgba(153, 153, 153, 1);
		position: absolute;
		bottom: 30upx;
		right: 30upx;
	}

	.message_me {
		position: relative;
		padding: 24upx;
	}

	.viewpoint {
		width: 100%;
		padding: 24upx;
		background: #F7F7F7;
		box-sizing: border-box;
		margin-top: 10upx;
	}
</style>
